-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[Clang] Lift HIPSPV onto the new offload driver (WIP) #168043
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| break; | ||
| case llvm::Triple::spirv32: | ||
| case llvm::Triple::spirv64: | ||
| if (Target.getOSName() == "hipspv" || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this here? The linker wrapper passes --target=spirv64-amd-amdhsa which keys off of the HSA OS above. Do we need separate handling?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what is being asked here. chipStar utilizes HIPSPV TC which is achieved by keying off with the spirv*-*-chipstar triple.
| OPT_v, | ||
| OPT_cuda_path_EQ, | ||
| OPT_rocm_path_EQ, | ||
| OPT_hip_path_EQ, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the HIP path really different from the rocm path? Figured those would just be aliases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not necessarily? HIP is a subset of ROCm and I think that HIP is a subdirectory in ROCm installations so --hip-path != --rocm-path.
| A->getValue(1))); | ||
| } | ||
| Args.ClaimAllArgs(options::OPT_Xoffload_linker); | ||
| Args.ClaimAllArgs(options::OPT_Xoffload_compiler); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where'd the other one go?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My mistake - I'll fix it.
Preparing HIPSPV toolchain to support
--offload-new-driver.TODOs: